package cm.tl.pms.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: lwp
 * @createTime: 2024/12/30 11:05
 */
@AllArgsConstructor
@Getter
public enum ApplicationEnum {
    DATA("Data", "1", "数据"),
    PICTURE("Picture", "2", "图片"),
    DOCUMENT("Document", "3", "文档"),
    VIDEO("Video", "4", "音视频"),
    CHAT("Chat", "5", "问答"),
    BE_COMMON("通用", "6", "通用");
    private String msg;
    private String code;
    private String name;


    public static String getMsgByCode(String code) {
        for (ApplicationEnum value : values()) {
            if (value.getCode().equals(code)) {
                return value.getMsg();
            }
        }
        return null;
    }
}
